From b7a9d1fb4b92390cfd68f0588d187f43728c9bb5 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 10 Nov 2020 15:08:59 +0100 Subject: [PATCH] Don't add executables to cmake exports Bug-Debian: https://bugs.debian.org/803304 CMake exports are used by other packages that compile and link against dcmtk. Because Debian moves some of these executables and also dosn't install the test executables, this import may fail leading to failure to configure the according package. Gbp-Pq: Name 07_dont_export_all_executables.patch --- CMake/dcmtkMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/dcmtkMacros.cmake b/CMake/dcmtkMacros.cmake index cdf17d78..f2f00041 100644 --- a/CMake/dcmtkMacros.cmake +++ b/CMake/dcmtkMacros.cmake @@ -60,11 +60,11 @@ macro(DCMTK_ADD_EXECUTABLE PROGRAM) endif() # Collect executable as part of global DCMTK_EXECUTABLE_TARGETS property - set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM}) + #set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM}) # declare installation files, also export DCMTKTargets.cmake install(TARGETS ${PROGRAM} - EXPORT DCMTKTargets + # EXPORT DCMTKTargets COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() -- 2.30.2